package com.sc.nft.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.google.common.collect.Lists;
import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.ArrayList;

@AllArgsConstructor
@Getter
public enum EcologyHatchDirectThrustIncomeType {

    NOT_FOUND_RECOMMEND(0,"未找到上级","上级id等于0或者是1或者是null"),
    TO_BE_SETTLED(1,"待结算","等待结算"),
    HAVE_ALREADY_SETTLED(2,"已结算","已发放"),
    FAIL(3,"结算失败","没有上级或者上级不符合条件"),
    NOT_FOUND_CONF(4,"结算失败","没有配置直推收益"),
    NOT_FOUND_RECOMMEND_USER(5,"结算失败","结算时未找到上级"),
    NOT_FOUND_INCOME_COLLECTION(6,"结算失败","结算时未找藏品身份配置"),

    ;
    @EnumValue
    private int code;
    private String description;
    private String rmark;


    public static ArrayList<EcologyHatchDirectThrustIncomeType> getIncomeTypeList() {
        ArrayList<EcologyHatchDirectThrustIncomeType> list = Lists.newArrayList();
        list.add(NOT_FOUND_RECOMMEND);//未找到上级
        list.add(TO_BE_SETTLED); //待结算
        return list;
    }
}
